package com.claims.code

import com.claims.Claim

class Type {

  String name

  public String toString() {
    return name;
  }

  static hasMany = [claims: Claim, validations: Validation]

  static constraints = {
    name(inList: ['MEDICAL','DENTAL'])
  }

  static mapping = {
      version false
    sort name:'asc'
  }
}
